package com.yanfan.evaluation.domain;

import com.yanfan.common.annotation.Excel;
import com.yanfan.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 工单任务评价对象 inspection_review
 *
 * @author kerwincui
 * @date 2024-08-06
 */
public class InspectionReview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String reviewContent;

    /** 评价状态 */
    @Excel(name = "评价状态")
    private Long reviewType;

    /** 评价人 */
    @Excel(name = "评价人")
    private String reviewer;

    /** 评价时间 */
    @JsonFormat(pattern = "yy-mm-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yy-mm-dd")
    private Date reviewTime;

    /** 任务类型 */
    @Excel(name = "任务类型")
    private Long taskType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    public void setReviewContent(String reviewContent)
    {
        this.reviewContent = reviewContent;
    }

    public String getReviewContent()
    {
        return reviewContent;
    }
    public void setReviewType(Long reviewType)
    {
        this.reviewType = reviewType;
    }

    public Long getReviewType()
    {
        return reviewType;
    }
    public void setReviewer(String reviewer)
    {
        this.reviewer = reviewer;
    }

    public String getReviewer()
    {
        return reviewer;
    }
    public void setReviewTime(Date reviewTime)
    {
        this.reviewTime = reviewTime;
    }

    public Date getReviewTime()
    {
        return reviewTime;
    }
    public void setTaskType(Long taskType)
    {
        this.taskType = taskType;
    }

    public Long getTaskType()
    {
        return taskType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("reviewContent", getReviewContent())
            .append("reviewType", getReviewType())
            .append("reviewer", getReviewer())
            .append("reviewTime", getReviewTime())
            .append("taskType", getTaskType())
            .toString();
    }
}
